package top.jandmla.excel.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import top.jandmla.excel.bean.User;
import top.jandmla.excel.pojo.QueryPageDTO;
import top.jandmla.excel.pojo.UserPojo;
import top.jandmla.excel.util.result.BaseResult;

import java.util.List;

public interface UserService extends IService<User> {

    UserPojo getPojoUser(String useName);

    List<UserPojo> getAllUserPojo(User dto);

    BaseResult<String> insertUser(User user);

    BaseResult<String> updateUser(User user);

    BaseResult<String> updateUserByAdmin(User user);

    IPage<User> selectAllUserAndPage(QueryPageDTO<User> dto);


}
